import React, {useState} from 'react';
import { Input } from 'antd';

const [valueInputSearch, setValueInputSearch] = useState('');

const onChangeInputSearch = (e: any) => {
  setValueInputSearch(e.target.value as any)
};

const onSearch = (value: string) => console.log(value);

const App: React.FC = () => (
  <>
    <Input.Search placeholder="请输入" value={valueInputSearch} onChange={onChangeInputSearch} onSearch={onSearch} />
  </>
);

export default App;
